package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicCostLogMapper;
import com.whq.entity.BasicCostLog;
import com.whq.service.BasicCostLogService;

@Service(value = "tdBasicCostLogService")
public class BasicCostLogServiceImpl implements BasicCostLogService {

    @Autowired
    private BasicCostLogMapper<BasicCostLog>tdBasicCostLogMapper;
    
    @Override
    public Integer insertSelective(BasicCostLog tdBasicCostLog) throws Exception {
           return this.tdBasicCostLogMapper.insertSelective(tdBasicCostLog);
        }

    @Override
    public Integer insertBatch(List<BasicCostLog> tdBasicCostLog) throws Exception {
           return this.tdBasicCostLogMapper.insertBatch(tdBasicCostLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdBasicCostLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdBasicCostLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicCostLog tdBasicCostLog) {
           return this.tdBasicCostLogMapper.updateByPrimaryKeySelective(tdBasicCostLog);
    }

    @Override
    public BasicCostLog findById(Object id) {
           return (BasicCostLog) this.tdBasicCostLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicCostLog> selectByCondition(BasicCostLog tdBasicCostLog) {
           return (List<BasicCostLog>) this.tdBasicCostLogMapper.selectByCondition(tdBasicCostLog);
    }

    @Override
    public Integer selectCountByCondition(BasicCostLog tdBasicCostLog) {
           return  this.tdBasicCostLogMapper.selectCountByCondition(tdBasicCostLog);
    }

}
